package org.jeecg.modules.storage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.AutoRecordLog;
import org.jeecg.modules.flowable.apithird.business.entity.FlowMyBusinessDto;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalTime;
import java.util.Date;

/**
 * @Description: 入库通知单
 * @Author: jeecg-boot
 * @Date:   2024-06-18
 * @Version: V1.0
 */
@ApiModel(value="buss_storage_notice对象", description="入库通知单")
@Data
@TableName("buss_storage_notice")
@AutoRecordLog(value = 1)
public class BussStorageNotice extends FlowMyBusinessDto implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")

    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**单据编号*/
	@Excel(name = "单据编号", width = 15)
    @ApiModelProperty(value = "单据编号")
    private String code;
	/**单据类型*/
	@Excel(name = "单据类型", width = 15)
    @ApiModelProperty(value = "单据类型")
    private String type;
    /**
     * 审批状态
     */
    @ApiModelProperty(value = "审批状态")
    private String status;

    /**
     * 业务节点
     */
    @ApiModelProperty(value = "业务节点")
    private String businessNode;
    /**
     * 物料大类
     */
    @ApiModelProperty(value = "物料大类")
    private String materialTypeName;
    /**
     * 业务类型
     */
    @ApiModelProperty(value = "业务类型")
    private String businessType;

    /**
     * 宝洁供应商编号
     */
    @ApiModelProperty(value = "宝洁供应商编号")
    private String bjSupplierCode;
    /**
     * 宝洁采购订单号
     */
    @ApiModelProperty(value = "宝洁采购订单号")
    private String bjProcurementCode;
    /**
     * 宝洁供应商名称
     */
    @ApiModelProperty(value = "宝洁供应商名称")
    private String bjSupplierName;
    /**
     * 时间
     */
    @ApiModelProperty(value = "日志时间")
    private String logtime = String.valueOf(System.currentTimeMillis() + LocalTime.now().getNano())  ;

    /**
     * 是否删除
     */
    @ApiModelProperty(value = "是否删除")
    private Integer isDelete;

    @ApiModelProperty(value = "物料大类")
    private String materialTypeCode;

    @ApiModelProperty(value = "是否废弃")
    private Integer disuse;

    @ApiModelProperty(value = "入库类型")
    private String storageType;

    @ApiModelProperty(value = "版本号")
    @Version
    private Integer version;

    @ApiModelProperty(value = "生产车间")
    private String workshop;

    /**客户物料编号*/
//    @Excel(name = "客户物料编号", width = 15)
}
